package com.otp.service.instance.impl;

import org.appfuse.service.impl.GenericManagerImpl;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.List;

import com.otp.model.test.template.AttributeValue;
import com.otp.model.test.template.dao.AttributeValueDao;
import com.otp.service.instance.AttributeValueManager;

public class AttributeValueManagerImpl extends GenericManagerImpl<AttributeValue,Long> implements AttributeValueManager{

	private AttributeValueDao attributeValueDao;

	@Autowired
	public void setAttributeValueDao(AttributeValueDao attributeValueDao){
		this.dao = attributeValueDao;
		this.attributeValueDao = attributeValueDao;
	}

	public List<AttributeValue> getAttributeValuesByParentAttribute(String attributeId){

		List<AttributeValue> result = null;
		try {
			result = attributeValueDao.getAttributeValuesByParentAttribute(attributeId);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return result;
	}
}
